<template>
  <div class="btn" @click="login">
    <span></span>
    <slot></slot>
  </div>
</template>

<script>
export default {
  methods: {
    login(event) {
      this.$emit('click', event);
    }
  }
};
</script>

<style lang="less">
.btn {
    margin: 0 auto;
  width: 300 * 100/360vw;
  height: 40px;
  background-color: #d43d3d;
  // border: 1px solid #ccc;
  border-radius: 20px;
  text-align: center;
  line-height: 40px;
  color: #fff;
  font-size: 20px;
}
</style>
